// 课程分类下拉列表
const vmCourstId = new Vue({
    el: "#outerHeader",
    data: {
        list: [],
        value:''
    },
    // $('.searchText > input').val()
    methods: {
        getHref: function (val,keyword) {
            return "search.html?subjectId=" + val + "&keyword=" + this.value+"&courseType=&type="
        },
    },
    created() {
        axios
            .post('http://wkt.myhope365.com//weChat/applet/subject/list', { enable: 1 })
            .then(res => {
                console.log(res.data.rows);
                this.list = res.data.rows

            })
    }
})
// 课程分类小箭头
$('#courseImg').on({
    mouseenter() {
        $('#courseImg>img').attr('src', 'images/下箭头绿.png')
    },
    mouseleave() {
        $('#courseImg>img').attr('src', 'images/下箭头.png')
    }
})
$('#top').on({
    mouseenter() {
        $('#courseId').show();
    },
    mouseleave() {
        $('#courseId').hide();
    }
})
$('#courseId').on({
    mouseenter() {
        $('#courseId').show();
    },
    mouseleave() {
        $('#courseId').hide();
    }
})